﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Common.CodeCommon;
using Common.ExportReport;

namespace Common.UserControls
{
    public partial class ucDataGridView : UserControl
    {
        public ucDataGridView()
        {
            InitializeComponent();
        }

        #region Properties
        #endregion Properties
        #region Event
        #region Toolstrip
        private void tsbExcel_Click(object sender, EventArgs e)
        {
            new Opens().SaveExcelFile(dgv);
        }

        private void tsbPrint_Click(object sender, EventArgs e)
        {
            DataTable tbl = new Exports().DataGridViewToDataTable(dgv);
            DataSetTemplate temp = new DataSetTemplate();
            temp.Tables.Add(tbl);


        }

        private void tsbLast_Click(object sender, EventArgs e)
        {

        }

        private void tsbNext_Click(object sender, EventArgs e)
        {

        }

        private void tsbPrevious_Click(object sender, EventArgs e)
        {

        }

        private void tsbFirst_Click(object sender, EventArgs e)
        {

        }
        #endregion Toolstrip
        #region DataGrid
        #endregion DataGrid
        #endregion Event
        #region Function
        #endregion Function
    }
}
